//
//  MainsTableViewCell.m
//  WD-Movies
//
//  Created by 宋梦华 on 2019/1/24.
//  Copyright © 2019年 chuck. All rights reserved.
//

#import "MainsTableViewCell.h"
#import "NewBViewController.h"

@implementation MainsTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    //    定义位置
    [self Frame];
    return self;
}
-(void)Frame{
    //    意见反馈
    _ideaBtn = [[UIButton alloc]init];
    [self.contentView addSubview:self.ideaBtn];
    self.ideaBtn.sd_layout
    .leftSpaceToView(self.contentView, 40)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
    //    图片
    UIImageView *img= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img.image = [UIImage imageNamed:@"my_icon_feedback_default_hdpi"];
    [_ideaBtn addSubview:img];
    //    标题
    UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label.text = @"意见反馈";
    label.textColor = [UIColor blackColor];
    [_ideaBtn addSubview:label];
    
    //    最新版本
    _EditionBtn = [[UIButton alloc]init];
    [self.contentView addSubview:self.EditionBtn];
    self.EditionBtn.sd_layout
    .leftSpaceToView(self.ideaBtn, 30)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
   
    //    图片
    UIImageView *img1= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img1.image = [UIImage imageNamed:@"my_icon_version_default_hdpi"];
    [_EditionBtn addSubview:img1];
    //    标题
    UILabel *label1 =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label1.text = @"最新版本";
    label1.textColor = [UIColor blackColor];
    [_EditionBtn addSubview:label1];
    
    //    退出登录
    _ExitBtn = [[UIButton alloc]init];
    [self.contentView addSubview:self.ExitBtn];
    _ExitBtn.sd_layout
    .leftSpaceToView(self.EditionBtn, 30)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
    //    图片
    UIImageView *img2= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img2.image = [UIImage imageNamed:@"my_icon_logout_default_hdpi"];
    [_ExitBtn addSubview:img2];
    //    信息
    UILabel *label2 =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label2.text = @"退出登录";
    label2.textColor = [UIColor blackColor];
    [_ExitBtn addSubview:label2];
}


@end
